package cn.icatw.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author icatw
 * @date 2022/3/11
 * @email 762188827@qq.com
 * @apiNote 二级分类vo
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Catelog2Vo {
    /**
     * "catalog1Id":"1",
     * "catalog3List":[
     * "id":"5",
     * "name":"音乐"
     */
    /**
     * 一级父分类id
     */
    private String catalog1Id;
    /**
     * 三级子分类
     */
    private List<Catelog2Vo.Catelog3Vo> catalog3List;
    private String id;
    private String name;

    /**
     * @author icatw
     * @date 2022/3/11
     * @email 762188827@qq.com
     * @apiNote 三级分类vo
     * "catalog2Id":"1",
     * "id":"1",
     * "name":"电子书"
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Catelog3Vo {
        private String catalog2Id;
        private String id;
        private String name;
    }
}
